<%--
	fileName      : /prodmgmt/WebContent/sso_client/SWITCHPAGE.jsp
	author        : lenovo
	createDate    : 2016-06-15  10:11:16
	lastModifier  : lenovo
	lastModifyDate: 2016-06-15  10:11:16
	description   : 接收首页过来的链接
--%>

<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="ctp-tag" prefix="ctp" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String sc=request.getScheme()+"://";
%>
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
		<ctp:include items='public,message_ex,validator,borderlayout'/>
		<title>Title</title>
		<script type='text/javascript'>
			var urlObj=eval("("+"<ctp:out name='itemIdx'/>"+")");
			//alert(urlObj.flowc);
			var url="";
			var bp="<%=sc%>"+urlObj.ip+":"+urlObj.port+"<%=path%>"+"/";
			if(urlObj.processflowc){
				url=bp+urlObj.processflowc+"&dse_sessionId="+"<ctp:out name='dse_sessionId'/>";
			}else{
				if(urlObj.flowc == "outsystem"){
					url=bp+urlObj.flowc+".flowc?flowActionName="+urlObj.opg+"&dse_sessionIdxxx="+"<ctp:out name='dse_sessionId'/>"+urlObj.params;
				}else{
					url=bp+urlObj.flowc+".flowc?flowActionName="+urlObj.opg+"&dse_sessionId="+"<ctp:out name='dse_sessionId'/>"+urlObj.params;
				}
			}
			//alert(url);
			if(url != ""){
				window.location.href=url;
			}
        </script>
	</head>
	
	<body>
		
	</body>
</html>

<%--
	date        :
	modifyReason:
--%>